home *** CD-ROM | disk | FTP | other *** search
/ Hot Super Models / Hot Super Models.iso / unix / x11 / xv200.tar / xv-2.00 / Imakefile < prev    next >
Makefile  |  1992-01-02  |  6KB  |  177 lines

  1. /* if, for whatever reason, you're unable to get the JPEG library to compile
  2.  * on your machine, *COMMENT OUT* the following lines
  3.  */
  4. JPEG = -DHAVE_JPEG
  5. JPEGDIR = jpeg
  6. LIBJPEG = $(JPEGDIR)/libjpeg.a
  7. JPEGINCLUDE = -I$(JPEGDIR)
  8.  
  9.  
  10. /* if you are running under DXWM, I pity you.  XV doesn't work correctly
  11.  * under DXWM.  You should probably be running MWM.  However, if such is
  12.  * not a valid option for you, try uncommenting the following line.  The
  13.  * behavior won't be 'right', but it will be less 'wrong'.
  14.  */
  15. /* DXWM = -DDXWM */
  16.  
  17. /*
  18.  * if you are running on a SysV-based machine, such as HP, Silicon Graphics,
  19.  * etc, uncomment the following line to get you *most* of the way there.
  20.  */
  21. /* UNIX = -DSVR4 */
  22.  
  23. /*
  24.  * If you are running on a POSIX-compatible machine, such as an
  25.  * IBM RS6000, you MAY need uncomment the 'NEED_DIRENT' line.
  26.  * To determine if such is the case, do a 'man readdir' on your machine.  If
  27.  * readdir() returns a pointer to 'struct direct', you will not have
  28.  * to change anything.  If, however, readdir() returns a pointer to
  29.  * 'struct dirent', you will have to add the '-DDIRENT' to CFLAGS
  30.  *
  31.  * One note: folks using an IBM RS/6000 don't have to touch this line.  
  32.  *           I check for '6000'-hood in xv.h
  33.  */
  34. /* NEED_DIRENT = -DDIRENT */
  35.  
  36.  
  37. /* If your machine doesn't have the 'strchr', 'memset' and 'memcpy'
  38.  * functions, but does have 'bcopy', uncomment the following line:
  39.  */
  40. /* USEMEM= -DNEED_MEMROUTINES */
  41.  
  42.  
  43. /* IF YOUR MACHINE DOESN'T HAVE 'vprintf()' OR 'vsprintf()'
  44.  *
  45.  * Vax BSD and IBM AOS don't have vprintf or vsprintf.
  46.  * Note that our local library versions of sprintf have been updated
  47.  * to return int, the number of characters in the formatted string,
  48.  * whereas the versions in stock 4.3BSD do not so return.  You may
  49.  * have to remove the "-DINTSPRINTF" below if you're compiling for
  50.  * stock 4.3BSD or for some other Vax or RT library package where
  51.  * sprintf returns char *.
  52.  *
  53.  * Also, I define NOVOID on the Vax because I'm using pcc to compile.
  54.  * If you use gcc or some other better compiler, this should not be
  55.  * necessary.  I define NOSTDHDRS on the RT because we don't have
  56.  * standard ANSI header files installed for the RT, even though the RT
  57.  * compiler claims to be ANSI-compliant.
  58.  */
  59. #if defined(VaxArchitecture) && !defined(UltrixArchitecture)
  60. VPRINTF=    -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOVOID
  61. #else 
  62. #  if defined(RtArchitecture) && !defined(AIXArchitecture)
  63. VPRINTF=    -DNEED_VPRINTF -DINTSPRINTF -DLONGINT -DNOSTDHDRS
  64. #  endif
  65. #endif
  66.  
  67.  
  68. /* If your machine does not have the 'setitimer()' call, but does
  69.  * have the 'usleep()' call, uncomment the following line:
  70.  */
  71. /* TIMERS = -DUSLEEP */
  72. /*
  73.  * alternately, if your machine does not have EITHER the 'setitimer()' or
  74.  * the 'usleep()' call, uncomment the following line:
  75.  */
  76. /* TIMERS = -DNOTIMER */
  77.  
  78.  
  79. /* If you are using an AT&T machine, uncomment the following line
  80.  * If you have problems compiling xv.c and xvdir.c because of the DIR
  81.  * reference in dirent.h, append '-DATT' to the following line:
  82.  */
  83. /* ATT = -DSVR4 -DDIRENT -DUSLEEP -DATT */
  84.  
  85.  
  86. /* If you are using an HP running HPUX 7.0, uncomment the following line
  87.  */
  88. /* HPUX7 = -DSVR4 -DATT +Ns4000 -DHPUX7 */
  89.  
  90.  
  91. /* for UMAX V by Encore Computers uncomment the following line for
  92.  * the portable c compiler, and system specific definitions.
  93.   * No other switches should be necessary
  94.  */
  95. /* UMAX = -q extensions=pcc_c -D__UMAXV__ -DSVR4 -DDIRENT */
  96.  
  97.  
  98. #if defined(SCOArchitecture)
  99. SCO= -DPOSIX -DNOITIMER
  100. SYS_LIBRARIES=        $(XLIB) -lm -lc -lx
  101. #else
  102. SYS_LIBRARIES=        $(XLIB) -lm
  103. #endif
  104.  
  105.  
  106. DEFINES= $(SCO) $(UNIX) $(NEED_DIRENT) $(VPRINTF) $(TIMERS) $(ATT) \
  107.     $(USEMEM) $(HPUX7) $(JPEG) $(JPEGINCLUDE) $(DXWM) $(UMAX)
  108.  
  109. SYS_LIBRARIES=    -lX11 $(LIBJPEG) -lm
  110.  
  111. BITMAPS = bitmaps/grasp bitmaps/penn bitmaps/down bitmaps/down1 \
  112.       bitmaps/up bitmaps/up1 bitmaps/scrlgray bitmaps/gray50 \
  113.       bitmaps/gray25 bitmaps/i_fifo bitmaps/i_chr bitmaps/i_dir \
  114.       bitmaps/i_blk bitmaps/i_lnk bitmaps/i_sock bitmaps/i_reg \
  115.       bitmaps/rb_off bitmaps/rb_on bitmaps/rb_off1 bitmaps/rb_on1 \
  116.       bitmaps/fc_left bitmaps/fc_leftm bitmaps/fc_mid bitmaps/fc_midm \
  117.       bitmaps/fc_right bitmaps/fc_rightm bitmaps/fc_left1 \
  118.       bitmaps/fc_left1m bitmaps/fc_right1 bitmaps/fc_right1m \
  119.       bitmaps/icon bitmaps/dial_cw1 bitmaps/dial_cw2 bitmaps/dial_ccw1 \
  120.       bitmaps/dial_ccw2 bitmaps/iconmask bitmaps/gf1_addh \
  121.       bitmaps/gf1_delh bitmaps/gf1_line bitmaps/gf1_rst \
  122.       bitmaps/gf1_spln bitmaps/gf1_gamma \
  123.       bitmaps/h_rotl bitmaps/h_rotr bitmaps/h_sinc bitmaps/h_sdec \
  124.       bitmaps/h_flip bitmaps/cb_off bitmaps/cb_on bitmaps/cb_off1 \
  125.       bitmaps/cb_on1 bitmaps/h_sat bitmaps/h_desat bitmaps/root_weave \
  126.           bitmaps/cboard50 bitmaps/mb_chk
  127.  
  128.  
  129. SRCS1 =    xv.c xv24to8.c xvbutt.c xvctrl.c xvdir.c xvfish.c xvgam.c\
  130.     xvgif.c xvgifwr.c xvinfo.c xvmisc.c xvpbm.c xvpm.c xvscrl.c\
  131.     xvxbm.c xvsunras.c xvjpeg.c vprintf.c
  132.  
  133. SRCS1 =    xv.c xvevent.c xvroot.c xvmisc.c xvimage.c xvcolor.c xvsmooth.c \
  134.     xv24to8.c xvgif.c xvpm.c xvinfo.c xvctrl.c xvscrl.c \
  135.     xvgifwr.c xvdir.c xvbutt.c xvpbm.c xvxbm.c xvgam.c \
  136.     xvdial.c xvgraf.c xvsunras.c xvjpeg.c xvps.c xvpopup.c xvdflt.c \
  137.     vprintf.c 
  138.  
  139. OBJS1 =    xv.o xvevent.o xvroot.o xvmisc.o xvimage.o xvcolor.o xvsmooth.o \
  140.     xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o \
  141.     xvgifwr.o xvdir.o xvbutt.o xvpbm.o xvxbm.o xvgam.o \
  142.     xvdial.o xvgraf.o xvsunras.o xvjpeg.o xvps.o xvpopup.o xvdflt.o \
  143.     vprintf.o 
  144.  
  145. SRCS2=    bggen.c
  146. OBJS2=    bggen.o
  147.  
  148. PROGRAMS= xv bggen
  149.  
  150. all::
  151.     @echo ""
  152.     @echo "  Did you remember to 'make depend' first?"
  153.     @echo ""
  154. #if JPEG == -DHAVE_JPEG
  155.     @echo "  building libjpeg.a ..."
  156.     @echo ""
  157.     ( cd $(JPEGDIR) ; $(MAKE) libjpeg.a )
  158.     @echo ""
  159. #endif
  160.     @echo "  building xv ..."
  161.     @echo ""
  162.  
  163. depend:: bitmaps.h
  164.  
  165. ComplexProgramTarget_1(xv,,)
  166. ComplexProgramTarget_2(bggen,,)
  167.  
  168. InstallNonExec(docs/xv.man,$(MANDIR)/xv.ManSuffix)
  169. InstallNonExec(docs/bggen.man,$(MANDIR)/bggen.ManSuffix)
  170.  
  171. tar:
  172.     tar cf xv.tar Makefile *.c *.h bitmaps docs $(MISC)
  173.  
  174. bitmaps.h: $(BITMAPS)
  175.     cat $(BITMAPS) > bitmaps.h
  176.  
  177.